package com.messe.base.models;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class Notification implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -18026463879883395L;
	private String id;
	private Manual manual;
	private String title;
	private Timestamp createdStamp;
	private Timestamp lastUpdatedStamp;
	private Integer languageType;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Manual getManual() {
		return manual;
	}
	public void setManual(Manual manual) {
		this.manual = manual;
	}
	public String getTitle() {
		return (null != title) ? title : "";
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Timestamp getCreatedStamp() {
		return createdStamp;
	}
	public void setCreatedStamp(Timestamp createdStamp) {
		this.createdStamp = createdStamp;
	}
	public Timestamp getLastUpdatedStamp() {
		return lastUpdatedStamp;
	}
	public void setLastUpdatedStamp(Timestamp lastUpdatedStamp) {
		this.lastUpdatedStamp = lastUpdatedStamp;
	}
	public Integer getLanguageType() {
		return languageType;
	}
	public void setLanguageType(Integer languageType) {
		this.languageType = languageType;
	}
	
	public String getCreateTime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return (null != createdStamp) ? sdf.format(createdStamp) : "";
	}
}
